<html>
<head><meta charset="utf-8"><title>help · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/help.html">help</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="222747716"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/help/near/222747716" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Nikita Patsakula <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/help.html#222747716">(Jan 14 2021 at 17:03)</a>:</h4>
<p>Hi! Now I'm porting Rust to a platform that has support of LLC(LLVM target) and a C++ compiler. I am not quite sure how I can create the original compiler</p>



<a name="222748021"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/help/near/222748021" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/help.html#222748021">(Jan 14 2021 at 17:05)</a>:</h4>
<p>are you asking how to build rust from source?</p>



<a name="222748043"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/help/near/222748043" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/help.html#222748043">(Jan 14 2021 at 17:05)</a>:</h4>
<p>there are instruction in the README</p>



<a name="222748437"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/help/near/222748437" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Nikita Patsakula <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/help.html#222748437">(Jan 14 2021 at 17:08)</a>:</h4>
<p>Yes I tried instructions in README however my target triple is not supported. I want to add a new target triple...</p>



<a name="222748519"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/help/near/222748519" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/help.html#222748519">(Jan 14 2021 at 17:08)</a>:</h4>
<p>hmm, I think <span class="user-mention" data-user-id="116155">@Jake Goulding</span> wrote up instructions for this at one point</p>



<a name="222748527"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/help/near/222748527" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/help.html#222748527">(Jan 14 2021 at 17:08)</a>:</h4>
<p>not sure where</p>



<a name="222748779"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/help/near/222748779" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/help.html#222748779">(Jan 14 2021 at 17:10)</a>:</h4>
<p>What I had is <a href="https://github.com/shepmaster/rust/blob/silicon/silicon/README-cross-compilation.md">https://github.com/shepmaster/rust/blob/silicon/silicon/README-cross-compilation.md</a></p>



<a name="222749120"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/help/near/222749120" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/help.html#222749120">(Jan 14 2021 at 17:12)</a>:</h4>
<p>Those instructions were modified over time, and started from where some other people started.</p>



<a name="222749241"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/help/near/222749241" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/help.html#222749241">(Jan 14 2021 at 17:13)</a>:</h4>
<p>You’ll need to start by adding a target in rustc_target</p>



<a name="222749269"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/help/near/222749269" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/help.html#222749269">(Jan 14 2021 at 17:13)</a>:</h4>
<p>Or defining a JSON target file￼</p>



<a name="222749330"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/help/near/222749330" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/help.html#222749330">(Jan 14 2021 at 17:13)</a>:</h4>
<p>The target file should be faster to iterate on but the X.PY build script sometimes doesn’t work great with target files.</p>



<a name="222749464"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/help/near/222749464" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/help.html#222749464">(Jan 14 2021 at 17:14)</a>:</h4>
<p>I made contributions to X.PY that should make it work OK with target files but I haven’t needed to use that in a while￼</p>



<a name="222749676"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/help/near/222749676" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Nikita Patsakula <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/help.html#222749676">(Jan 14 2021 at 17:16)</a>:</h4>
<p>There are several issues:<br>
Host LLVM does not support target triple<br>
Target LLVM cannot be linked on host machine<br>
I modified config.toml and tried to call configure however it already started to call to <code>rustc --triple $MYTRIPLE</code>.</p>
<p>So I am a little bit stuck</p>



<a name="222749867"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/help/near/222749867" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Nikita Patsakula <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/help.html#222749867">(Jan 14 2021 at 17:17)</a>:</h4>
<p>To tell the truth the target is VLIW with a modified LLVM so I am provided with a <a href="http://llvm.so">llvm.so</a> only which can be linked on the target machine only with a proprietary linker</p>



<a name="222749928"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/help/near/222749928" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nagisa <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/help.html#222749928">(Jan 14 2021 at 17:17)</a>:</h4>
<p>that's gonna be difficult, then</p>



<a name="222749988"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/help/near/222749988" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/help.html#222749988">(Jan 14 2021 at 17:18)</a>:</h4>
<p><span class="user-mention" data-user-id="380211">@Nikita Patsakula</span> there are two things going on:</p>
<ol>
<li>you need to add support for your target to rustc</li>
<li>you need to build a compiler cross-compiled to your target</li>
</ol>
<p>you can't do 2 before you do 1</p>



<a name="222750158"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/help/near/222750158" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nagisa <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/help.html#222750158">(Jan 14 2021 at 17:19)</a>:</h4>
<p>it is necessary to bootstrap which means that you either need to be able to cross-compile to the target architecture or run an some existing compiler on your build machine (possibly via emulation)</p>



<a name="222750243"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/help/near/222750243" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Nikita Patsakula <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/help.html#222750243">(Jan 14 2021 at 17:19)</a>:</h4>
<p>I am willing to do that. I met an article <a href="https://old.reddit.com/r/rust/comments/5ag60z/how_do_i_bootstrap_rust_to_crosscompile_for_a_new/d9gdjwf/">https://old.reddit.com/r/rust/comments/5ag60z/how_do_i_bootstrap_rust_to_crosscompile_for_a_new/d9gdjwf/</a> and I tried to bootstrap the compiler however the article is 4 years old</p>



<a name="222750364"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/help/near/222750364" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nagisa <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/help.html#222750364">(Jan 14 2021 at 17:20)</a>:</h4>
<p>Seems like you cannot do the former, so you'll need to somehow do the latter. But yeah, you still need to do the preparatory work of adding the target to rustc and possibly making changes to the standard library to adapt it for your target before you attempt this.</p>



<a name="222750404"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/help/near/222750404" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Nikita Patsakula <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/help.html#222750404">(Jan 14 2021 at 17:20)</a>:</h4>
<p><span class="user-mention" data-user-id="232545">@Joshua Nelson</span> how can I perform the first step?</p>



<a name="222750499"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/help/near/222750499" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nagisa <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/help.html#222750499">(Jan 14 2021 at 17:21)</a>:</h4>
<p>Use contents of <a href="https://github.com/rust-lang/rust/tree/master/compiler/rustc_target">https://github.com/rust-lang/rust/tree/master/compiler/rustc_target</a> as your reference.</p>



<a name="222750510"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/help/near/222750510" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/help.html#222750510">(Jan 14 2021 at 17:21)</a>:</h4>
<p><span class="user-mention" data-user-id="380211">@Nikita Patsakula</span> did you try the instructions in <a href="https://github.com/shepmaster/rust/blob/silicon/silicon/README-cross-compilation.md">https://github.com/shepmaster/rust/blob/silicon/silicon/README-cross-compilation.md</a> ?</p>



<a name="222750513"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/help/near/222750513" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nagisa <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/help.html#222750513">(Jan 14 2021 at 17:21)</a>:</h4>
<p>Should be fairly straightforward.</p>



<a name="222750534"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/help/near/222750534" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Nikita Patsakula <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/help.html#222750534">(Jan 14 2021 at 17:21)</a>:</h4>
<p>Smth like writing specs <a href="https://github.com/rust-lang/rust/blob/master/compiler/rustc_target/src/spec/i686_unknown_linux_gnu.rs">https://github.com/rust-lang/rust/blob/master/compiler/rustc_target/src/spec/i686_unknown_linux_gnu.rs</a>?<br>
But how do I compile "pre"-stage0?</p>



<a name="222750688"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/help/near/222750688" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nagisa <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/help.html#222750688">(Jan 14 2021 at 17:22)</a>:</h4>
<p>stage0 is downloaded for your <code>build</code> machine.</p>



<a name="222750838"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/help/near/222750838" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nagisa <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/help.html#222750838">(Jan 14 2021 at 17:23)</a>:</h4>
<p>Of course it won't exist for <code>build</code> target that hasn't existed before, that's why you either cross-compile or emulate. (You can also just try bootstrapping through the entire chain of compilers all the way from when rustc was written in ocaml or alternatively try for a less long chain with mrustc)</p>



<a name="222751080"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/help/near/222751080" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Nikita Patsakula <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/help.html#222751080">(Jan 14 2021 at 17:24)</a>:</h4>
<p>i'am not sure there is OCaml compiler for my target machine</p>



<a name="222751148"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/help/near/222751148" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/help.html#222751148">(Jan 14 2021 at 17:25)</a>:</h4>
<p>I think you want to cross-compile, not build 20 different compilers <span aria-label="laughing" class="emoji emoji-1f606" role="img" title="laughing">:laughing:</span></p>



<a name="222751191"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/help/near/222751191" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nagisa <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/help.html#222751191">(Jan 14 2021 at 17:25)</a>:</h4>
<p>They said they cannot cross though – the linker only runs on the target machine and is proprietary?</p>



<a name="222751308"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/help/near/222751308" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Nikita Patsakula <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/help.html#222751308">(Jan 14 2021 at 17:26)</a>:</h4>
<p>yes</p>



<a name="222751327"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/help/near/222751327" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/help.html#222751327">(Jan 14 2021 at 17:26)</a>:</h4>
<p>that is going to be very painful then</p>



<a name="222751351"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/help/near/222751351" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/help.html#222751351">(Jan 14 2021 at 17:26)</a>:</h4>
<p>the linker can't cross-compile? (I don't know what that really means tbh)</p>



<a name="222751425"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/help/near/222751425" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nagisa <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/help.html#222751425">(Jan 14 2021 at 17:27)</a>:</h4>
<p>the linker cannot run on any of the <code>build</code> targets we currently have support for, not that it cannot cross-compile.</p>



<a name="222751638"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/help/near/222751638" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nagisa <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/help.html#222751638">(Jan 14 2021 at 17:28)</a>:</h4>
<p>do you have an emulator that could run the VLIW target's code on some more conventional architecture?</p>



<a name="222751763"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/help/near/222751763" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Vadim Petrochenkov <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/help.html#222751763">(Jan 14 2021 at 17:29)</a>:</h4>
<p>With <code>-Clinker</code> any custom script can be used as a linker in theory.<br>
That script can send files to a different device or run emulator or whatever.</p>



<a name="222751970"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/help/near/222751970" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Nikita Patsakula <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/help.html#222751970">(Jan 14 2021 at 17:30)</a>:</h4>
<p>I got an x86 emulator on the target machine</p>



<a name="222752052"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/help/near/222752052" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nagisa <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/help.html#222752052">(Jan 14 2021 at 17:30)</a>:</h4>
<p>In that case path of least resistance (expensive in compute time, but cheap in developer time) is to just emulate stage0 via binfmt or somesuch.</p>



<a name="222752154"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/help/near/222752154" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nagisa <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/help.html#222752154">(Jan 14 2021 at 17:31)</a>:</h4>
<p><code>-Clinker</code> is an interesting option, though having to use a vendor-provided <code>llvm.so</code> that is _also_ only available for target architecture(?) prohibits this approach I think.</p>



<a name="222752162"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/help/near/222752162" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Nikita Patsakula <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/help.html#222752162">(Jan 14 2021 at 17:31)</a>:</h4>
<p>but this emulator works only for statically linked binaries:(</p>



<a name="222752289"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/help/near/222752289" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nagisa <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/help.html#222752289">(Jan 14 2021 at 17:32)</a>:</h4>
<p>I think <code>x86_64-unknown-linux-musl</code> toolchain might be statically linked.</p>



<a name="222752343"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/help/near/222752343" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Nikita Patsakula <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/help.html#222752343">(Jan 14 2021 at 17:32)</a>:</h4>
<p>Also there is a great C compiler on the target machine... Do you think I should bootstrap from mrustc?</p>



<a name="222752410"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/help/near/222752410" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nagisa <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/help.html#222752410">(Jan 14 2021 at 17:33)</a>:</h4>
<p>it is an option you can try, yeah.</p>



<a name="222752681"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/help/near/222752681" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Nikita Patsakula <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/help.html#222752681">(Jan 14 2021 at 17:34)</a>:</h4>
<p>Thanks a lot! I am continue my work on it tomorrow</p>



<a name="222828585"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/help/near/222828585" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Steven Bridges <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/help.html#222828585">(Jan 15 2021 at 07:56)</a>:</h4>
<p>19.5</p>
<p>Formula</p>
<p>Description</p>
<p>Result</p>
<p>=INT(8.9)</p>
<p>Rounds 8.9 down</p>
<p>8</p>
<p>=INT(-8.9)</p>
<p>Rounds -8.9 down. Rounding a negative number down rounds it away from 0.</p>
<p>-9</p>
<p>=A2-INT(A2)</p>
<p>Returns the decimal part of a positive real number in cell A2</p>
<p>0.5</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>